<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
 <%@page import="com.fit.user.entity.*"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.fit.user.entity.CaseMsgEntity"%>
 <%@ page import="com.fit.user.dao.*"  %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    	<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
    <title>My JSP 'remark.jsp' starting page</title>

      	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
</style> 

</style> 
  </head>
  <script type="text/javascript" src="<%=contextPath%>/dwr/engine.js"></script>
  <script type="text/javascript" src="<%=contextPath%>/dwr/util.js"></script>
   <script type="text/javascript" src="<%=contextPath%>/dwr/interface/CaseMsgDAO.js"></script>
 
  <script type="text/javascript">
function myfunction(txt)
{
//alert(txt);
CaseMsgDAO.changeFlag(txt,callback);

}
function callback(result){
if(result)
{
	alert("您已阅读,下次的登录不再显示!");
}
  	
}
</script>


  </head>

  <body>


<table cellpadding="0" cellspacing="0" width="100%">
<tr><td valign="top" align="right" width="40%"><img src="<%=contextPath%>/img/tanhao.png" width="70" height="70"/></td>
<td  valign="top" width="60%" align="left"><br/><h1>监督提示:</h1>您有以下信息需要查看</Td></tr>
<tr><td valign="top" colspan="5" align="center">
<!-- ------------ -->
  <%
  String policeID = (String)request.getParameter("policeID");
  CaseMsgDAO caseMsgDAO = new CaseMsgDAO();
  List<CaseMsgEntity> list = caseMsgDAO.getRemark(policeID);
   %>


<form >
 <table width="90%"  class="table_boder" cellpadding="0" cellspacing="0">
 <tr bgcolor="#1D639F">
	<td class="td_boder" align="center" style="color:#ffffff;">警号</td>
	<td class="td_boder"  align="center" style="color:#ffffff;">姓名</td>
	<td class="td_boder"  align="center" style="color:#ffffff;">备案编号</td>
	<td  class="td_boder"  align="center" style="color:#ffffff;">案件名称</td>
	<td class="td_boder"  align="center" style="color:#ffffff;">监督提示信息</td>
	<td class="td_boder"  align="center" style="color:#ffffff;" align="center">操作</td>
	</tr>
	<c:forEach var="caseMsgEntity" items = "<%=list %>">
	<tr>
	<td>${caseMsgEntity.policeID }</td>
	<td>${caseMsgEntity.policeName }</td>
	<td>${caseMsgEntity.caseID }</td>
	<td>${caseMsgEntity.caseName }</td>
	<td>${caseMsgEntity.remark }</td>
	<td align="right"><input type="button" onclick="myfunction('${caseMsgEntity.caseID }')" value="阅读"></td>
	</tr>
	</c:forEach>
	</table>
	</form>


<!-- ------------ -->
</td></tr>

</table>
  </body>
</html>
